package com.cskaoyan.controller;

import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminLogService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AdminLogController
 * @Description
 * @Author Lxz
 * @Date 2022-8-13 9:00
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {
    @Autowired
    AdminLogService adminLogService;

    @RequiresPermissions("admin:log:list")
    @RequestMapping("list")
    public BaseRespVo list(String username,BasePageInfo info) {
        CommonData list = adminLogService.list(username,info);
        return BaseRespVo.custom(0,list,"成功");
    }




}
